package com.cmc.cloud.cmclink.doc.vo.blnocontactvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 目的港代理联系方式维护 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlnoContactBaseVO {

    @Schema(description = "港口代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoContactBaseVO.portCode.NotBlank}")
    @Length(max = 5, message = "{BlnoContactBaseVO.portCode.Length}")
    private String portCode;

    @Schema(description = "代理名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoContactBaseVO.agentNm.NotBlank}")
    @Length(max = 50, message = "{BlnoContactBaseVO.agentNm.Length}")
    private String agentNm;

    @Schema(description = "航线")
    @Length(max = 300, message = "{BlnoContactBaseVO.laneCode.Length}")
    private String laneCode;

    @Schema(description = "地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{BlnoContactBaseVO.address.NotBlank}")
    @Length(max = 300, message = "{BlnoContactBaseVO.address.Length}")
    private String address;

}
